package com.example.myapplication01.broadcast;

import android.content.BroadcastReceiver;
import android.content.Context;
import android.content.Intent;
import android.util.Log;
import android.widget.Toast;

public class AnotherReceiver extends BroadcastReceiver {
    private static final String TAG = "AnotherReceiver";


    @Override
    public void onReceive(Context context, Intent intent) {
        String action = intent.getAction();
        if ("com.example.myapplication01.MY_BROADCAST".equals(action)) {
            Log.d(TAG, "onReceive: receive in AnotherReceiver");
            Toast.makeText(context,"receive in AnotherReceiver", Toast.LENGTH_SHORT).show();
        }
    }
}